import requests,json


class send:

    def __init__(self,url='',path='',data='',headers=''):

        self.url = url
        self.path = path
        self.data = data
        self.headers = headers


    def post(self):
        data_json = json.dumps(self.data)

        self.url = self.url

        res = requests.post(self.url + self.path, data=data_json, headers=self.headers)

        return res.json()

